package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.hkhospital.entity.RolePmsExample;
import com.san.hkhospital.entity.RolePms;
import com.san.hkhospital.mapper.RolePmsMapper;
import com.san.hkhospital.service.RolePmsService;
/**
 * ClassName:RolePmsServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class RolePmsServiceImpl implements RolePmsService{

    @Resource
    private RolePmsMapper rolePmsMapper;

    @Override
    public long countByExample(RolePmsExample example) {
        return rolePmsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(RolePmsExample example) {
        return rolePmsMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer roleId,Integer pmsId) {
        return rolePmsMapper.deleteByPrimaryKey(roleId,pmsId);
    }

    @Override
    public int insert(RolePms record) {
        return rolePmsMapper.insert(record);
    }

    @Override
    public int insertSelective(RolePms record) {
        return rolePmsMapper.insertSelective(record);
    }

    @Override
    public List<RolePms> selectByExample(RolePmsExample example) {
        return rolePmsMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(RolePms record,RolePmsExample example) {
        return rolePmsMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(RolePms record,RolePmsExample example) {
        return rolePmsMapper.updateByExample(record,example);
    }

}
